How do I control the number of child processes used to call external commands in Python